<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openssl</Name>
        <Homepage>http://www.openssl.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>Toolkit for SSL v2/v3 and TLS v1</Summary>
        <Description>OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them.</Description>
        <Archive sha1sum="bdfbdb416942f666865fa48fe13c2d0e588df54f" type="targz">https://www.openssl.org/source/openssl-1.0.2j.tar.gz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="openssl-1.0.0-beta4-ca-dir.patch">openssl-1.0.0-beta4-ca-dir.patch</AdditionalFile>
<!--             <AdditionalFile target="ca-dir.patch">ca-dir.patch</AdditionalFile> -->
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>xorg-util</Dependency>
            <Dependency>perl</Dependency>
            <Dependency>sed</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">openssl-1.0.0a-ldflags-norpath.patch</Patch>
            <Patch level="1">openssl-1.0.0-beta4-ca-dir.patch</Patch>
<!--             <Patch level="1">no-rpath.patch</Patch> -->
<!--             <Patch level="1">ca-dir.patch</Patch> -->
            <Patch level="1">openssl-1.0.0-beta5-enginesdir.patch</Patch>
            <Patch>openssl-1.0.2-ipv6.patch</Patch>
            <!--<Patch>openssl-1.0.2-s_client-verify.patch</Patch>-->
<!--             <Patch>openssl-include.patch</Patch> -->
            <!--Patch>openssl_fix_for_x32.patch</Patch-->
            <Patch>openssl_fix_for_x32_2.patch</Patch>
            <Patch>openssl-ca-certificates.patch</Patch>
            <Patch>CVE-2014-0198.patch</Patch>
            <!--<Patch>openssl-1.0.2a-malloc-typo.patch</Patch>-->
            <!--Patch>openssl-1.0.2a-parallel-build.patch</Patch-->
            <Patch>openssl-1.0.2a-x32-asm.patch</Patch>
            <!--<Patch>openssl-optflags.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>openssl</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>ca-certificates</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>openssl-devel</Name>
        <PartOf>system.devel</PartOf>
        <Summary>Development files for openssl</Summary>
        <RuntimeDependencies>
            <Dependency release="current">openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>openssl-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for openssl</Summary>
        <BuildType>_emul32</BuildType>
        <BuildDependencies>
            <Dependency>zlib-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">openssl</Dependency>
            <Dependency>zlib-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-01-08</Date>
            <Version>1.0.2j</Version>
            <Comment>Rebuild with new toolchain.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-08</Date>
            <Version>1.0.2j</Version>
            <Comment>Version bump.</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>1.0.2g</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-02</Date>
            <Version>1.0.2g</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
